package com.tan.cloudfegin.Service;

import com.api.cloud_api.Entity.CommonResult;
import com.api.cloud_api.Entity.Pay;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")
public interface PayOpenFginService {
     @GetMapping(value = "Pay/get/{id}")
     CommonResult<Pay> getPaymentById(@PathVariable("id") Long id);

     @GetMapping(value = "/get/sleep")
      String getsleep();
}
